package demo02;

class Student10 {
    private String name;
    private int age;
    //定义构造方法
    public Student10 (String n,int a){
        this.name = n;
        this.age = a;
    }
    public  String read (){
        return "我是："+name+",年龄："+age;
    }
}
public class Example10{
    public static void main(String[] args) {
        Student09 stu = new Student09("张三",18);
        System.out.println(stu.read());
    }
}
